#include<stdio.h>

int main()
{
        int a,b;
        fscanf(stdin,"%d%d",&a,&b);
        fprintf(stdout,"%o\n",a+b)
        ;return 0;
}
